package com.atguigu.java;

import java.util.ArrayList;
import java.util.List;

public class SampleTest {

    public static void main(String[] args) {
        List<Picture> pictureList = new ArrayList<>();
        while (true){
            try {
                Thread.sleep(20);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            pictureList.add(new Picture(1024*1024));
        }
    }
}

class Picture{
    Byte[] pixels;

    public Picture(int length){
        this.pixels = new Byte[length];
    }
}